package com.example.demo;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.jms.annotation.EnableJms;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
@EnableTransactionManagement//开启springBoot事务
@MapperScan("com.example.demo.dao")
//@EnableJms  //异步消息队列
//@ComponentScan("com.example.demo.mq.comsumer")
@EnableCaching//开启基于注解的缓存
public class MasterSlaveMysqlApplication {

    public static void main(String[] args) {
        SpringApplication.run(MasterSlaveMysqlApplication.class, args);
    }

}
